package com.ruoyi.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.dto.PayoutsDTO;
import com.ruoyi.common.core.domain.entity.WsdLeaveRecords;
import com.ruoyi.common.core.domain.entity.WsdMealRefunds;
import com.ruoyi.common.core.domain.entity.WsdParents;

import java.util.List;

/**
 * 请假审批记录Service接口
 *
 * @author ruoyi
 * @date 2024-04-16
 */
public interface IWsdLeaveRecordsService extends IService<WsdLeaveRecords>
{
    /**
     * 查询请假审批记录
     *
     * @param id 请假审批记录主键
     * @return 请假审批记录
     */
    public WsdLeaveRecords selectWsdLeaveRecordsById(Long id);

    /**
     * 查询请假审批记录列表
     *
     * @param wsdLeaveRecords 请假审批记录
     * @return 请假审批记录集合
     */
    public List<WsdLeaveRecords> selectWsdLeaveRecordsList(WsdLeaveRecords wsdLeaveRecords);

    /**
     * 新增请假审批记录
     *
     * @param wsdLeaveRecords 请假审批记录
     * @return 结果
     */
    public int insertWsdLeaveRecords(WsdLeaveRecords wsdLeaveRecords);

    /**
     * 修改请假审批记录
     *
     * @param wsdLeaveRecords 请假审批记录
     * @return 结果
     */
    public int updateWsdLeaveRecords(WsdLeaveRecords wsdLeaveRecords);

    /**
     * 批量删除请假审批记录
     *
     * @param ids 需要删除的请假审批记录主键集合
     * @return 结果
     */
    public int deleteWsdLeaveRecordsByIds(Long[] ids);

    /**
     * 删除请假审批记录信息
     *
     * @param id 请假审批记录主键
     * @return 结果
     */
    public int deleteWsdLeaveRecordsById(Long id);

    /**
     *
     * @param wsdLeaveRecords
     * @return
     */
    int appoveLeave(WsdLeaveRecords wsdLeaveRecords);

    public int updateWsdMealRefunds(PayoutsDTO payoutsDTO);
}
